package follow.juc.heima.day8;

import java.util.concurrent.atomic.AtomicInteger;

public class demo4 {
    public static void main(String[] args) {
        AtomicInteger ato = new AtomicInteger(10);
        int i = ato.get();
        System.out.println(i);
        int andAdd = ato.getAndAdd(i);
        System.out.println(andAdd);
    }
}
